#include <stdio.h>
int main(int argc, char *argv[])
{
    int input = 0;
    while(scanf("%d", &input) != EOF) {
        switch(input){
            case 2:
                printf("Lower class\n");
                break;
            case 3:
                printf("Lower class\n");
                break;
            case 4:
                printf("Middle class\n");
                break;
            case 5:
                printf("Higher class\n");
                break;
            case 6:
                printf("Higher class\n");
                break;
            default:
                printf("Bad input\n");
                break;
        }
    }
    return 0;
}
